<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
        <title th:text="#{screen.accountlocked.heading}">Account Locked View</title>
        <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/>
    </head>

    <body>
        <main role="main" class="container mt-3 mb-3">
            <div layout:fragment="content" class="mdc-card card p-4 m-auto w-lg-66">
                <h2 th:utext="#{screen.accountlocked.heading}">This account has been locked.</h2>
                <span th:remove="tag" th:if="${#bools.isTrue(enableAccountUnlock)}">
                    <p th:utext="#{screen.account.unlock.description}">Please unlock the account.</p>
                    <div th:replace="~{fragments/unlockaccount :: unlock}"></div>
                </span>
                <span th:remove="tag" th:unless="${enableAccountUnlock}">
                    <p th:utext="#{screen.accountlocked.message}">Please contact the system administrator to regain access.</p>
                </span>
            </div>
        </main>
    </body>
</html>
